<template>
	<view class="container">
		<view v-for="(item,index) in list" style="margin-bottom: 10px;" :key="index">
			<uni-card title="" @click="modify(item,index)" style="margin-top: 0px;">
				<view class="item">车牌号码：{{item.t1}}</view>
				<view class="item">车位号：{{item.t2}}</view>
				<view class="item">停车卡号：{{item.t3}}</view>
				<view class="item">车主姓名：{{item.t4}}</view>
				<view class="item">车主手机号：{{item.t5}}</view>
				<view class="item">相关住户姓名：{{item.t6}}</view>
				<view class="item">相关住户地址：{{item.t7}}</view>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onNavigationBarButtonTap() {
			uni.navigateTo({
				url: 'add/add',
			});
		},
		onLoad(item) {
			this.list = this.$request.t5
		},
		onReady() {

		},
		onShow() {
console.log(this.list);
		},
		methods: {
			modify(item,index) {
				uni.navigateTo({
					url: 'modify/modify?data=' + JSON.stringify(item)+"&index="+index,
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	};
</script>

<style lang="scss">

</style>
